package br.usp.pcs.basys2.info;

import java.util.Calendar;

public class JobInfo implements Comparable<JobInfo> {
	private Calendar arrivalDate;

	private ProcessInfo topProcess;

	public Calendar getArrivalDate() {
		return arrivalDate;
	}

	public void setArrivalDate(Calendar arrivalDate) {
		this.arrivalDate = arrivalDate;
	}

	public ProcessInfo getTopProcess() {
		return topProcess;
	}

	public void setTopSegment(ProcessInfo topSegment) {
		this.topProcess = topSegment;
	}

	public JobInfo(Calendar arrivalDate, ProcessInfo topProcess) {
		super();
		this.arrivalDate = arrivalDate;
		this.topProcess = topProcess;
	}

	public int compareTo(JobInfo o) {
		return this.arrivalDate.compareTo(o.arrivalDate);
	}
}
